home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Programmation / Alpha ƒ / Help / Shells < prev    next >
Text File  |  1996-01-03  |  2KB  |  63 lines

  1.  
  2.     TCL SHELL
  3.  
  4. The basic idea of the Tcl Shell is to provide an interactive way to access 
  5. TCL, it is *NOT* intended to serve as a pseudo-unix-shell. However, I don't 
  6. use MPW or AU/X, and therefore I implemented a few very useful unix shell 
  7. functions. 
  8.  
  9. All pathnames must be mac pathnames; relative pathnames start 
  10. with colons, absolute pathnames don't. For instance, ':file1' specifies a 
  11. file named 'file1' in the current directory. '::file2' specfies a file in 
  12. the parent directory, and ':::file3' is a file in the parent's parent's 
  13. directory. Additionally, hitting the tab key w/ a partial pathname invokes 
  14. a filename-completion function that tries to fill in the rest of the 
  15. characters of the name. 
  16.  
  17. The supported functions are all valid Tcl commands and the following:
  18.  
  19. cat <file>...  Dump contents of files into shell window.
  20.  
  21. cd <relative or absolute pathname>
  22.     Change directory. If called w/ no arguments, go to home directory if no 
  23.     arguments.
  24. cp <file1> <file2>
  25.     or
  26. cp <file1> .... <destDir>
  27.     Basic unix functionality, recursive.
  28.  
  29. grep <pat> <file>...
  30.     Grep, reasonably slow.
  31.  
  32. ls [-F|l] [<file>]...
  33.     Two, mutually exclusive flags. '-F' just gives the normal display, with 
  34.     a '*' behind applications and a '/' behind directories (folders). '-l' 
  35.     presents a long listing, including sizes of both forks, creator, file 
  36.     type, and last modification time. 'procs.tcl' includes functions 'l' and 
  37.     'll' which serve as my Unix aliases to 'ls -F' and 'ls -l'.
  38.     
  39. mv <file1> <file2>
  40.     or
  41. mv <file1> .... <destDir>
  42.     Moves a file, potentially across volume boundaries. Recursive.
  43.     
  44. ps
  45.     Prints a list of active applications.
  46.     
  47. rm [-r] <file>...
  48.     Removes files and empty directories. "-r" allows recursive removal, but 
  49.     DON'T BLAME ME IF YOU DELETE YOUR ENTIRE DRIVE!
  50.     
  51. wc <file>...
  52.     'wc' primitive from unix, counts lines, words, characters.
  53.  
  54. The file ":Tcl:SystemCode:shell.tcl" contains Tcl code implementing the 
  55. shell interface.  You can change this to suit your tastes.  One recent 
  56. goody is that you can re-execute previous commands merely by moving the 
  57. cursor to the line and hitting the return key.  If there is no '>' 
  58. character on the line when you hit a carriage return, the return is an 
  59. ordinary new line.
  60.  
  61. A primitive history mechanism can be used to move up and down the last 20 
  62. commands by using control-uparrow and control-downarrow at a prompt.
  63.